package org.zjt.i18n;

import java.util.ResourceBundle;
import java.util.spi.ResourceBundleControlProvider;

/**
 * @author juntao.zhang
 * @version V1.0
 * @Description:  编码的control provider，只能放在ext、bootstrap classloader下面在能加载。
 * @Package org.zjt.i18n
 * @date 2018/6/17 23:43
 */
public class EncodeResourceBundleControlProvider implements ResourceBundleControlProvider {
    @Override
    public ResourceBundle.Control getControl(String baseName) {
        LocalTest.EncodingResourceBundleControl GBKEncodingResourceBundleControl = new LocalTest.EncodingResourceBundleControl("GBK");
        return GBKEncodingResourceBundleControl;
    }
}
